import request from '@/utils/request'

// 查询实时成交列表
export function listSwaprealtimelastesttradebak(query) {
  return request({
    url: '/swaprealtimelastesttrade/swaprealtimelastesttradebak/list',
    method: 'get',
    params: query
  })
}

// 查询实时成交详细
export function getSwaprealtimelastesttradebak(id) {
  return request({
    url: '/swaprealtimelastesttrade/swaprealtimelastesttradebak/' + id,
    method: 'get'
  })
}

// 新增实时成交
export function addSwaprealtimelastesttradebak(data) {
  return request({
    url: '/swaprealtimelastesttrade/swaprealtimelastesttradebak',
    method: 'post',
    data: data
  })
}

// 修改实时成交
export function updateSwaprealtimelastesttradebak(data) {
  return request({
    url: '/swaprealtimelastesttrade/swaprealtimelastesttradebak',
    method: 'put',
    data: data
  })
}

// 删除实时成交
export function delSwaprealtimelastesttradebak(id) {
  return request({
    url: '/swaprealtimelastesttrade/swaprealtimelastesttradebak/' + id,
    method: 'delete'
  })
}
